﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ResumeCenter.master" AutoEventWireup="true"
    CodeFile="PersonTrainingExperience.aspx.cs" Inherits="PersonTrainingExperience" %>

<%@ Register Src="UserControl/Location.ascx" TagName="Location" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_Right" runat="Server">

    <script type="text/javascript" src="./ftb/ckeditor.js"></script>

    <div id="resumeInfo">
        <h2>
            培训经历</h2>
        <div class="rightRow1">
            请在页面下方“新增培训经历”处填写新的培训经历。要更改或删除某项培训经历，请按“编辑”或“删除”链接。</div>
        <!-- 已添加的培训经历 -->
        <asp:ListView ID="ListView1" runat="server">
            <ItemTemplate>
                <tr style="">
                    <td align="left" class="tab6Td1  " width="250">
                        <%# Eval("Institutions")%>
                    </td>
                    <td width="150">
                        <%#DateFormat.BeginOverDate(Convert.ToDateTime(Eval("BeginDate").ToString()),Convert.ToDateTime(Eval("OverDate").ToString()))%>
                    </td>
                    <td style="width: 150px;">
                        <%# Eval("Course")%>
                    </td>
                    <td width="210" style="text-align: center;">
                        <asp:Button ID="btn_Update" runat="server" CommandArgument='<%# Eval("ID") %>' OnClick="btn_Update_Click"
                            Text="编辑" />
                        |
                        <asp:Button ID="btn_Delete" CssClass="blue12line" CommandArgument='<%# Eval("ID") %>'
                            OnClick="btn_Delete_Click" runat="server" Text="删除" />
                    </td>
                </tr>
            </ItemTemplate>
            <EmptyDataTemplate>
                <table border="0" class="table1" style="width: 100%">
                    <tr id="Tr1" style="">
                        <th id="Th1" runat="server">
                            培训机构
                        </th>
                        <th id="Th2" runat="server">
                            时间
                        </th>
                        <th id="Th3" runat="server">
                            课程
                        </th>
                        <th id="Th4" runat="server">
                            操作
                        </th>
                    </tr>
                    <tr>
                        <td colspan="4" style="padding-top: 5%; text-align: center">
                            您目前没有添加任何培训经历记录。
                        </td>
                    </tr>
                </table>
            </EmptyDataTemplate>
            <LayoutTemplate>
                <table id="itemPlaceholderContainer" runat="server" border="0" class="table1" style="width: 100%">
                    <tr id="Tr1" runat="server" style="">
                        <th id="Th1" runat="server">
                            培训机构
                        </th>
                        <th id="Th2" runat="server">
                            时间
                        </th>
                        <th id="Th3" runat="server">
                            课程
                        </th>
                        <th id="Th4" runat="server">
                            操作
                        </th>
                    </tr>
                    <tr id="itemPlaceholder" runat="server">
                    </tr>
                </table>
            </LayoutTemplate>
            <SelectedItemTemplate>
                <tr class="nowEdit" style="display: none;">
                    <td align="left" class="tab6Td1  " width="250">
                        <span class="grey12">
                            <%# Eval("CompanyName") %></span>
                    </td>
                    <td width="150">
                        <%#DateFormat.BeginOverDate(Convert.ToDateTime(Eval("BeginDate").ToString()),Convert.ToDateTime(Eval("OverDate").ToString()))%>
                    </td>
                    <td width="150">
                        <%# Eval("Department") %>
                    </td>
                    <td width="210" style="text-align: center;">
                        <asp:Button ID="btn_Update" runat="server" CommandArgument='<%# Eval("ID") %>' OnClick="btn_Update_Click"
                            Text="编辑" />
                        |
                        <asp:Button ID="btn_Delete2" CssClass="blue12line" CommandArgument='<%# Eval("ID") %>'
                            OnClick="btn_Delete_Click" runat="server" Text="删除" />
                    </td>
                </tr>
            </SelectedItemTemplate>
        </asp:ListView>
        <!-- end 已添加的培训经历 -->
        <div class="rightRow1">
            <h1>新增培训经历</h1>（<span class="org14">*</span>为必填项）</div>
        <span class="org12" style="display: none;">[ 提示：如果您修改了选择项，则相应的英文简历该条记录也会自动被更改。请保持中英文内容的一致性。]</span>
        <!-- 培训经历 -->
        <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table5">
            <colgroup>
                <col width="1">
                <col width="110">
                <col width="300">
            </colgroup>
            <tbody>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        培训机构
                    </td>
                    <td>
                        <asp:TextBox ID="txt_Institytions" runat="server"></asp:TextBox>
                        <b>
                            <asp:HiddenField ID="txt_ID" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <font class="org14">*</font>
                    </td>
                    <td>
                        培训地点
                    </td>
                    <td>
                        &nbsp;
                        <uc1:Location ID="ddl_Location" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <font class="org14">*</font>
                    </td>
                    <td valign="top">
                        培训课程
                    </td>
                    <td>
                        <asp:TextBox ID="txt_Course" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <font class="org14">*</font>
                    </td>
                    <td>
                        培训时间
                    </td>
                    <td>
                        <asp:DropDownList ID="ddl_Year1" runat="server">
                        </asp:DropDownList>
                        <asp:DropDownList ID="ddl_Month1" runat="server">
                        </asp:DropDownList>
                        &nbsp;到
                        <asp:DropDownList ID="ddl_Year2" runat="server">
                        </asp:DropDownList>
                        <asp:DropDownList ID="ddl_Month2" runat="server">
                        </asp:DropDownList>
                        (后两项不填表示至今)
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        获得证书
                    </td>
                    <td>
                        <asp:TextBox ID="txt_Certificate" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        &nbsp;
                    </td>
                    <td valign="top">
                        培训详细情况描述
                    </td>
                    <td>
                        <asp:TextBox CssClass="ckeditor" runat="server" ID="DescriptionTextBox" Rows="5"
                            TextMode="MultiLine" Width="300px" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                        <span class="grey12">列举与应聘职位相关的培训课程，避免涉及无关的课程。等。（限2000个字）
                    </td>
                </tr>
            </tbody>
        </table>
        <!-- end 培训经历 -->
        <div class="btnCon">
            <asp:Button ID="btn_SaveNew" runat="server" CssClass="btn5" OnClick="btn_SaveNew_Click"
                Text="保存并新增培训经历" />
            &nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btn_Save" runat="server" CssClass="btn7"
                OnClick="btn_Save_Click" Text="保存" />
            &nbsp;&nbsp;&nbsp;<a href="./PersonResume.aspx">返回</a></div>
        <div style="text-align: center;">
            <asp:Label ID="lbl_Error" runat="server" ForeColor="Red"></asp:Label>
        </div>
    </div>
</asp:Content>
